import service from '@/utils/request'

// @Tags UserIndexTop
// @Summary 创建UserIndexTop
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndexTop true "创建UserIndexTop"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userIndexTop/createUserIndexTop [post]
export const createUserIndexTop = (data) => {
     return service({
         url: "/userIndexTop/createUserIndexTop",
         method: 'post',
         data
     })
 }


// @Tags UserIndexTop
// @Summary 删除UserIndexTop
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndexTop true "删除UserIndexTop"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userIndexTop/deleteUserIndexTop [delete]
 export const deleteUserIndexTop = (data) => {
     return service({
         url: "/userIndexTop/deleteUserIndexTop",
         method: 'delete',
         data
     })
 }

// @Tags UserIndexTop
// @Summary 删除UserIndexTop
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserIndexTop"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userIndexTop/deleteUserIndexTop [delete]
 export const deleteUserIndexTopByIds = (data) => {
     return service({
         url: "/userIndexTop/deleteUserIndexTopByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserIndexTop
// @Summary 更新UserIndexTop
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndexTop true "更新UserIndexTop"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userIndexTop/updateUserIndexTop [put]
 export const updateUserIndexTop = (data) => {
     return service({
         url: "/userIndexTop/updateUserIndexTop",
         method: 'put',
         data
     })
 }


// @Tags UserIndexTop
// @Summary 用id查询UserIndexTop
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndexTop true "用id查询UserIndexTop"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userIndexTop/findUserIndexTop [get]
 export const findUserIndexTop = (params) => {
     return service({
         url: "/userIndexTop/findUserIndexTop",
         method: 'get',
         params
     })
 }


// @Tags UserIndexTop
// @Summary 分页获取UserIndexTop列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserIndexTop列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userIndexTop/getUserIndexTopList [get]
 export const getUserIndexTopList = (params) => {
     return service({
         url: "/userIndexTop/getUserIndexTopList",
         method: 'get',
         params
     })
 }